﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductsByMonth.aspx.cs"
    Inherits="CoolCode.Web.UI.Views.Inquiry.ProductsByMonth" %>

<%@ Register Src="~/Controls/EmptyData.ascx" TagName="EmptyData" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ExcelExporter.ascx" TagName="ExcelExporter" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>月度统计</title>
</head>
<body>
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="tsmAjax" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Content/js/Common.js" />
        </Scripts>
    </ajaxToolkit:ToolkitScriptManager>
    <cc:Loading ID="Loading1" runat="server"></cc:Loading>
    <!--Title -->
    <div class="HeaderTitle">
        <asp:Label ID="SCRHDR" runat="server" Text="月度统计"></asp:Label>
    </div>
    <asp:Panel ID="pnlMaster" runat="server" CssClass="HeaderSearch">
    </asp:Panel>
    <!--Grid-->
    <asp:UpdatePanel ID="udpHeader" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
        <ContentTemplate>
            <div class="HeaderToolbar">
                <asp:LinkButton ID="lnkSearch" runat="server" CausesValidation="False" Text="查询" />
                &nbsp; <a href="#" onclick="refresh();">刷新</a>&nbsp;
                <uc:ExcelExporter ID="exporter" runat="server" />
                &nbsp;
            </div>
            <div class="HeaderGridView">
                <asp:GridView ID="gvMaster" runat="server" SkinID="gvDetail" EnableViewState="false">
                    <Columns>
                        <asp:BoundField DataField="GroupBy" HeaderText="月份" ItemStyle-Width="50" ItemStyle-CssClass="RightColumns" />
                        <asp:BoundField DataField="PersentOfPassODFar" HeaderText="胶面外径（远）合格率" ItemStyle-Width="90"
                            ItemStyle-CssClass="RightColumns" DataFormatString="{0:P}" HtmlEncode="false" />
                        <asp:BoundField DataField="PersentOfPassODClose" HeaderText="胶面外径（近）合格率" ItemStyle-Width="90"
                            ItemStyle-CssClass="RightColumns" DataFormatString="{0:P}" />
                        <asp:BoundField DataField="PersentOfPassConeHeight" HeaderText="椎体高度合格率" ItemStyle-Width="90"
                            ItemStyle-CssClass="RightColumns" DataFormatString="{0:P}" />
                        <asp:BoundField DataField="PersentOfPassSacculusLength" HeaderText="球囊长度合格率" ItemStyle-Width="90"
                            ItemStyle-CssClass="RightColumns" DataFormatString="{0:P}" />
                        <asp:BoundField DataField="PersentOfPassSacculusStretch" HeaderText="球囊伸长长度合格率" ItemStyle-Width="90"
                            ItemStyle-CssClass="RightColumns" DataFormatString="{0:P}" />
                        <asp:BoundField DataField="PersentOfPassODStressTest2" HeaderText="220KPa压力测试（外径）合格率"
                            ItemStyle-Width="90" ItemStyle-CssClass="RightColumns" DataFormatString="{0:P}" />
                        <asp:BoundField DataField="PersentOfPassStressTestLength" HeaderText="220KPa压力测试（长度）合格率"
                            ItemStyle-Width="90" ItemStyle-CssClass="RightColumns" DataFormatString="{0:P}" />
                        <asp:BoundField DataField="SubTotal" HeaderText="产品数量"
                            ItemStyle-Width="90" ItemStyle-CssClass="RightColumns"  />
                    </Columns>
                    <EmptyDataTemplate>
                        <uc:EmptyData ID="EmptyData1" runat="server" />
                    </EmptyDataTemplate>
                </asp:GridView>
            </div>
            <div style="clear: both;">
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
